package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 护理入科评估表
 * </p>
 *
 * @author zqb
 * @date 2024-07-26 10:31:53
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_care_pg_record")
public class BCarePgRecord extends Entity<Long> {



    /**
     * 病人识别号
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "病人识别号")
    private String patientIdent;
    /**
     * 住院号
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "住院号")
    private String hospitalNumber;
    /**
     * '入科记录类型,adult:成人,young:青年,special1:特殊1,special2:特殊2
     */
    @TableField(value = "record_type", condition = LIKE)
    @Schema(description = "'入科记录类型,adult:成人,young:青年,special1:特殊1,special2:特殊2")
    private String recordType;
    /**
     * 资料来源
     */
    @TableField(value = "data_src", condition = LIKE)
    @Schema(description = "资料来源")
    private String dataSrc;
    /**
     * 资料来源扩充
     */
    @TableField(value = "data_ext", condition = LIKE)
    @Schema(description = "资料来源扩充")
    private String dataExt;
    /**
     * 评分人
     */
    @TableField(value = "pfr", condition = LIKE)
    @Schema(description = "评分人")
    private String pfr;
    /**
     * 评分时间
     */
    @TableField(value = "pf_time", condition = EQUAL)
    @Schema(description = "评分时间")
    private LocalDateTime pfTime;
    /**
     * 评估内容json串
     */
    @TableField(value = "json_text", condition = LIKE)
    @Schema(description = "评估内容json串")
    private String jsonText;

    /**
     * 评估类型
     * 入院护理评估（成人） 1；入院护理评估（青少年）2；入院护理评估（特殊人群1）3；入院护理评估（特殊人群2）4
     */
    @TableField(value = "type", condition = EQUAL)
    @Schema(description = "评估类型 入院护理评估（成人） 1；入院护理评估（青少年）2；入院护理评估（特殊人群1）3；入院护理评估（特殊人群2）4")
    private Integer type;


    @Schema(description = "评分时间 时间戳")
    @TableField(exist = false)
    private Long pftimeLong;
}
